/**
 * 
 */
package travibot.meta;

import travibot.model.Material;

/**
 * @author tajzivit
 * 
 */
public class MaterialType {

    private int id;
    private Class implementingClass;
    private String implementingClassName;
    private String name;

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(Object obj) {

        boolean ret = false;
        if (obj instanceof MaterialType) {
            if (id == ((MaterialType)obj).id) {
                ret = true;
            }
        }
        return ret;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {

        return String.valueOf(id).hashCode();
    }

    public int getId() {

        return id;
    }

    public void setId(int id) {

        this.id = id;
    }

    public Class getImplementingClass() {

        return implementingClass;
    }

    public void setImplementingClass(Class implementingClass) {

        this.implementingClass = implementingClass;
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {

        this.name = name;
    }

    public String getImplementingClassName() {

        return implementingClassName;
    }

    public void setImplementingClassName(String implementingClassName) {

        this.implementingClassName = implementingClassName;
    }

}
